home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 June / PCWorld_2007-06_cd.bin / v cisle / pcwmultiboot / pcwMultiboot.exe / BootCD / MyBootCD / boot / scripts / variable.scr < prev   
Text File  |  2004-09-03  |  2KB  |  47 lines

  1. #
  2. # Sample script demonstrating some variables.
  3. # For CD Shell 2.0, Feb 2003
  4. #
  5.  
  6. #--------------------------------------------------------------------------
  7. # Print the program name and version string.
  8. cls
  9. print c "You are using $appName, version $(version).\n\n"
  10.  
  11.  
  12. #--------------------------------------------------------------------------
  13. # Print out the date and time as reported by the BIOS.
  14.  
  15. set hour = $timeHour
  16. set ampm = "AM"
  17. if $hour > 12        # Check for PM time.
  18.     then set hour = $hour - 12
  19.     then set ampm = "PM"
  20. if $hour == 0        # Check for 12 AM (midnight).
  21.     then set hour = 12
  22.  
  23. print c "Today's date is:\n"
  24. print c "$dateMonth-$dateDay-$dateYear  $hour:$timeMinute:$timeSecond $ampm\n\n"
  25.  
  26.  
  27. #--------------------------------------------------------------------------
  28. # Display the capabilities of the video adapter.
  29. if $vesa
  30.     then print c "VESA BIOS Extensions are sufficiently supported on this system\n"
  31.     then print c "You can display 640 by 480, true-color images.\n\n"
  32.     else print c "VESA BIOS Extensions are *not* sufficiently supported on this system\n"
  33.     else print c "You can only display 320 by 240, 256-color images.\n\n"
  34.  
  35.  
  36. #--------------------------------------------------------------------------
  37. # Check the bootability of HD0.
  38.  
  39. set boottest = bootCheck[0x80]
  40. if ($boottest > 0) && ($boottest < 3)
  41.     then print c "Hmm... HD0 appears bootable.\n\n"; then end
  42. if $boottest == 3
  43.     then print c "Hmm... I'm pretty sure \cXXhda\cxx can be booted.\n\n"
  44.     else print c "Hmm... I don't think I can boot from \cXXhda\cxx.\n\n"
  45.  
  46. end
  47.